package com.itheima.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ClazzVo {
    private Integer id; // ID, primary key
    private String name; // 班级名称
    private String room; // 班级教室
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate beginDate; // 开课时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate; // 结课时间
    private Integer masterId; // 班主任ID, 关联员工表ID
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime; // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    private String masterName;
    private String status;
}
